//
//  UIViewController+Extension.swift
//

import EachNavigationBar
import MKit

extension UIViewController {

    var configureNav: UINavigationController {
        let nav = BaseNavigationController(rootViewController: self)
        nav.navigation.configuration.isEnabled = true
        nav.navigation.configuration.isTranslucent = true
        nav.navigation.configuration.barTintColor = UIColor.sysWhite
        nav.navigation.configuration.titleTextAttributes = [.foregroundColor: UIColor.sysBlack,
                                                            .font: 17.font]
        return nav
    }
}
